package com.tianji.learning.controller;


import com.tianji.learning.domain.vo.PointsBoardSeasonVO;
import com.tianji.learning.service.IPointsBoardSeasonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Aimer
 * @since 2025-11-16
 */
@RestController
@RequestMapping("/board/season")
@Api(tags = "赛季模块")
@RequiredArgsConstructor
public class PointsBoardSeasonController {

    private final IPointsBoardSeasonService iPointsBoardSeasonService;

    @GetMapping
    @ApiOperation("获取所有赛季")
    public List<PointsBoardSeasonVO> getAllPointBoardSeason(){
       return iPointsBoardSeasonService.getAllPointBoardSeason();
    }
}
